/*
 * homepage.css
 * Design tokens, component styles, and responsive rules for:
 *   body.page-homepage  — public landing page
 *   body.page-public    — privacy policy, terms of use
 *   .platform-footer    — footer injected into the main app layout
 *
 * All rules are scoped or use unique class names so nothing leaks
 * into the main app (body.vertical-layout).
 */

/* ═══ TOKENS ═════════════════════════════════════════════════ */

body.page-homepage,
body.page-public {
  --c-dark:    #162E22;
  --c-teal:    #28AFB0;
  --c-mint:    #D9EDE8;
  --c-warm:    #F5F3EF;
  --c-white:   #FFFFFF;
  --c-border:  #DDE8E4;
  --c-text:    #334639;
  --c-muted:   #5A7268;
  font-family: 'Open Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--c-warm);
  color: var(--c-text);
  font-size: 18px;
  line-height: 1.7;
}

body.page-homepage *,
body.page-public * {
  box-sizing: border-box;
}

body.page-homepage { scroll-behavior: smooth; }

/* ═══ NAVIGATION ═════════════════════════════════════════════ */

.hp-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 1.75rem;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.hp-nav--scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 #DDE8E4;
}

body.page-public .hp-nav {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 #DDE8E4;
}

.hp-nav-inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hp-nav-brand {
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.hp-nav-brand:hover { opacity: 0.85; text-decoration: none; }

.hp-nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Language dropdown */
.hp-nav .nav.navbar-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hp-nav .dropdown-language .nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem;
  color: rgba(217, 237, 232, 0.65);
  font-size: 0.8rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  cursor: pointer;
  text-decoration: none;
}
.hp-nav .dropdown-language .nav-link:hover {
  color: #D9EDE8;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}
.hp-nav--scrolled .dropdown-language .nav-link,
body.page-public .hp-nav .dropdown-language .nav-link {
  color: #5A7268;
}
.hp-nav--scrolled .dropdown-language .nav-link:hover,
body.page-public .hp-nav .dropdown-language .nav-link:hover {
  color: #162E22;
  background: #F0EDE8;
}
.hp-nav .dropdown-menu {
  display: none;
  position: absolute;
  z-index: 9999;
  border: 1px solid #DDE8E4;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(22, 46, 34, 0.12);
  padding: 0.4rem;
  min-width: 130px;
  margin-top: 4px;
  background: #fff;
}
.hp-nav .dropdown-menu.show {
  display: block;
}
.hp-nav .dropdown-menu .dropdown-item {
  border-radius: 6px;
  font-size: 0.8rem;
  padding: 0.45rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #334639;
}
.hp-nav .dropdown-menu .dropdown-item:hover {
  background: #F5F3EF;
  color: #162E22;
}

.hp-nav-login {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid rgba(217, 237, 232, 0.35);
  color: #D9EDE8;
  background: transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.hp-nav-login:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
}
.hp-nav--scrolled .hp-nav-login,
body.page-public .hp-nav-login {
  background: #162E22;
  color: #D9EDE8;
  border-color: #162E22;
}
.hp-nav--scrolled .hp-nav-login:hover,
body.page-public .hp-nav-login:hover {
  background: #1F3D2E;
  color: #D9EDE8;
  box-shadow: 0 4px 16px rgba(22, 46, 34, 0.2);
  text-decoration: none;
}

/* ═══ HERO ═══════════════════════════════════════════════════ */

.hp-hero {
  background: #162E22;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hp-hd {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hp-hd-1 { width: 580px; height: 580px; bottom: -190px; right: -130px; border: 1px solid rgba(40, 175, 176, 0.13); }
.hp-hd-2 { width: 350px; height: 350px; bottom:  -80px; right:  -50px; border: 1px solid rgba(40, 175, 176, 0.23); }
.hp-hd-3 { width: 130px; height: 130px; top:      16%;  left:   -28px; border: 1px solid rgba(255, 255, 255, 0.05); }
.hp-hd-4 { width:  60px; height:  60px; top:       8%;  right:   28%;  background: rgba(40, 175, 176, 0.06); border: 1px solid rgba(40, 175, 176, 0.18); }

.hp-hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 1.75rem 4rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4rem;
  text-align: left;
  position: relative;
  z-index: 1;
}

.hp-hero-copy {
  flex: 1;
}

/* ── hp-tag: improved pill with breathing dot ── */
.hp-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 1.05rem;
  background: rgba(40, 175, 176, 0.12);
  border: 1px solid rgba(40, 175, 176, 0.32);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #28AFB0;
  margin-bottom: 1.5rem;
}
.hp-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #28AFB0;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(40, 175, 176, 0.85);
  animation: hp-dot-pulse 2.2s ease-in-out infinite;
}

@keyframes hp-dot-pulse {
  0%, 100% { opacity: 1;   box-shadow: 0 0 8px rgba(40,175,176,0.85); }
  50%       { opacity: 0.45; box-shadow: 0 0 3px rgba(40,175,176,0.2); }
}

.hp-hero-h1 {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #D9EDE8;
  margin: 0 0 1.25rem;
}
.hp-hero-h1 em {
  font-style: italic;
  color: #28AFB0;
  font-weight: 300;
}

.hp-hero-sub {
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(217, 237, 232, 0.72);
  margin: 0 0 2.5rem;
  max-width: 520px;
}

.hp-hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 2.25rem;
  background: #28AFB0;
  color: #fff;
  border-radius: 9px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}
.hp-hero-cta:hover {
  background: #1e9293;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(40, 175, 176, 0.35);
  text-decoration: none;
}
.hp-hero-cta:active { transform: none; }

.hp-hero-visual {
  width: 100%;
  max-width: 960px;
}

.hp-hero-img-wrap {
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.hp-hero-img {
  display: block;
  width: 100%;
  border-radius: 14px 14px 10px 10px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 40px 80px rgba(0, 0, 0, 0.3);
}

/* ═══ SCORE CARD ══════════════════════════════════════════════ */

/* Wrapper for stacked hero cards */
.hp-hero-cards {
  flex: 0 0 340px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hp-score-card {
  background: #FFFFFF;
  border: 1px solid rgba(40, 175, 176, 0.3);
  border-radius: 20px;
  padding: 1.75rem;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* White card: flip text colours to dark */
.hp-score-card .hp-score-card-title  { color: rgba(22, 46, 34, 0.5); }
.hp-score-card .hp-score-ring-value  { color: #162E22; }
.hp-score-card .hp-score-ring-bg     { stroke: rgba(22, 46, 34, 0.07); }
.hp-score-card .hp-trait-name        { color: rgba(22, 46, 34, 0.55); }
.hp-score-card .hp-trait-bar-wrap    { background: rgba(22, 46, 34, 0.07); }
.hp-score-card .hp-trait-val         { color: rgba(22, 46, 34, 0.75); }
.hp-score-card .hp-score-name-badge  { color: rgba(22, 46, 34, 0.6); background: rgba(22, 46, 34, 0.06); }
.hp-score-card .hp-score-divider     { background: rgba(22, 46, 34, 0.08); }
.hp-score-card .hp-recruit-num       { color: #162E22; }
.hp-score-card .hp-recruit-lbl       { color: rgba(22, 46, 34, 0.4); }
.hp-score-card .hp-recruit-stat      { border-right-color: rgba(22, 46, 34, 0.07); }

.hp-score-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.hp-score-card-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(217, 237, 232, 0.6);
}

.hp-score-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  background: rgba(40, 175, 176, 0.15);
  border: 1px solid rgba(40, 175, 176, 0.3);
  border-radius: 100px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #28AFB0;
}

.hp-score-live-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #28AFB0;
  box-shadow: 0 0 6px rgba(40, 175, 176, 0.85);
  flex-shrink: 0;
  animation: hp-dot-pulse 2.2s ease-in-out infinite;
}

/* Ring */
.hp-score-ring-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.hp-score-ring-svg { display: block; }

.hp-score-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 7;
}

.hp-score-ring-fill {
  fill: none;
  stroke: #28AFB0;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 264;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  animation: hp-ring-fill 1.5s ease 0.3s forwards;
  filter: drop-shadow(0 0 6px rgba(40, 175, 176, 0.5));
}

@keyframes hp-ring-fill {
  to { stroke-dashoffset: 34; }
}

.hp-score-ring-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.hp-score-ring-value {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  color: #D9EDE8;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* Trait bars */
.hp-traits {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hp-trait {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hp-trait-name {
  font-size: 0.75rem;
  color: rgba(217, 237, 232, 0.6);
  width: 90px;
  flex-shrink: 0;
}

.hp-trait-bar-wrap {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.hp-trait-bar {
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, #28AFB0, #1e9293);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  animation: hp-bar-fill 0.8s ease forwards;
}

.hp-trait:nth-child(1) .hp-trait-bar { animation-delay: 0.6s; }
.hp-trait:nth-child(2) .hp-trait-bar { animation-delay: 0.75s; }
.hp-trait:nth-child(3) .hp-trait-bar { animation-delay: 0.9s; }
.hp-trait:nth-child(4) .hp-trait-bar { animation-delay: 1.05s; }

@keyframes hp-bar-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hp-trait-val {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(217, 237, 232, 0.85);
  width: 22px;
  text-align: right;
  flex-shrink: 0;
}

/* ═══ SCROLL REVEAL ════════════════════════════════════════════ */

[data-hp-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-hp-reveal].revealed { opacity: 1; transform: none; }
[data-hp-reveal][data-reveal-delay="1"] { transition-delay: 0.05s; }
[data-hp-reveal][data-reveal-delay="2"] { transition-delay: 0.15s; }
[data-hp-reveal][data-reveal-delay="3"] { transition-delay: 0.25s; }
[data-hp-reveal][data-reveal-delay="4"] { transition-delay: 0.35s; }
[data-hp-reveal][data-reveal-delay="5"] { transition-delay: 0.45s; }


/* ═══ CONTENT SECTIONS ═══════════════════════════════════════ */

.hp-section {
  padding: 4rem 1.75rem;
}
.hp-section--warm  { background: #F5F3EF; }
.hp-section--white { background: #FFFFFF; }

.hp-split {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}
.hp-split--rev { flex-direction: row-reverse; }

.hp-split-media { flex: 0 0 33%; }
.hp-split-media img {
  display: block;
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(22, 46, 34, 0.09);
}

.hp-split-copy { flex: 1; }
.hp-split-copy h2 {
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #162E22;
  margin: 0 0 1rem;
}
.hp-split-copy p {
  font-size: 1rem;
  line-height: 1.75;
  color: #5A7268;
  margin: 0;
}

/* ═══ OUR APPROACH ═══════════════════════════════════════════ */

.hp-approach {
  padding: 4rem 1.75rem;
  background: #FFFFFF;
}

.hp-approach-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.hp-section-hdr {
  text-align: center;
  margin-bottom: 3rem;
}
.hp-section-hdr h2 {
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #162E22;
  margin: 0;
}

.hp-approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.hp-card {
  background: #FFFFFF;
  border: 1px solid #DDE8E4;
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}
.hp-card:hover {
  box-shadow: 0 8px 30px rgba(22, 46, 34, 0.08);
  border-color: rgba(40, 175, 176, 0.32);
  transform: translateY(-2px);
}

.hp-card-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #28AFB0 0%, #1e9293 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  box-shadow: 0 6px 16px rgba(40, 175, 176, 0.25);
}

.hp-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #162E22;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}
.hp-card-body p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #5A7268;
  margin: 0;
}

/* ═══ ALT SCORE CARD (Individual Report + Recruitment) ══════ */

.hp-score-name-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(217, 237, 232, 0.65);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.hp-score-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 1rem 0;
}

.hp-recruit-stats {
  display: flex;
  margin-top: 0.5rem;
}

.hp-recruit-stat {
  flex: 1;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}
.hp-recruit-stat:last-child { border-right: none; }

.hp-recruit-num {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: #D9EDE8;
  letter-spacing: -0.02em;
}

.hp-recruit-lbl {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(217, 237, 232, 0.4);
}

/* Alt card bar animation: starts after first card finishes */
.hp-score-card--alt .hp-trait:nth-child(1) .hp-trait-bar { animation-delay: 1.4s; }
.hp-score-card--alt .hp-trait:nth-child(2) .hp-trait-bar { animation-delay: 1.55s; }
.hp-score-card--alt .hp-trait:nth-child(3) .hp-trait-bar { animation-delay: 1.7s; }

/* ═══ HOW IT WORKS ═══════════════════════════════════════════ */

.hp-hiw {
  background: #162E22;
  padding: 5rem 1.75rem;
}

.hp-hiw-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.hp-hiw .hp-section-hdr h2 { color: #D9EDE8; }

.hp-hiw-layout {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
  margin-top: 3rem;
}

/* Steps (left) */
.hp-hiw-steps {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hp-hiw-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
.hp-hiw-step:hover { background: rgba(255, 255, 255, 0.03); }
.hp-hiw-step.active {
  background: rgba(40, 175, 176, 0.08);
  border-color: rgba(40, 175, 176, 0.2);
}

.hp-hiw-num {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(217, 237, 232, 0.15);
  flex-shrink: 0;
  line-height: 1;
  padding-top: 0.1rem;
  transition: color 0.2s;
}
.hp-hiw-step.active .hp-hiw-num { color: #28AFB0; }

.hp-hiw-step-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(217, 237, 232, 0.4);
  margin: 0 0 0.3rem;
  transition: color 0.2s;
}
.hp-hiw-step.active .hp-hiw-step-body h3 { color: #D9EDE8; }

.hp-hiw-step-body p {
  font-size: 0.875rem;
  color: rgba(217, 237, 232, 0.28);
  line-height: 1.6;
  margin: 0;
  transition: color 0.2s;
}
.hp-hiw-step.active .hp-hiw-step-body p { color: rgba(217, 237, 232, 0.55); }

/* Panels col (right) — wraps panels + nav */
.hp-hiw-panel-col {
  flex: 0 0 340px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hp-hiw-panels {
  position: relative;
  min-height: 340px;
}

.hp-hiw-panel {
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.hp-hiw-panel.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Nav bar: prev · progress · next */
.hp-hiw-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hp-hiw-nav-btn {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(217, 237, 232, 0.55);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: 'Open Sans', sans-serif;
}
.hp-hiw-nav-btn:hover {
  background: rgba(40, 175, 176, 0.15);
  border-color: rgba(40, 175, 176, 0.3);
  color: #28AFB0;
}

.hp-hiw-progress-wrap {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.hp-hiw-progress-fill {
  height: 100%;
  background: #28AFB0;
  border-radius: 2px;
  width: 0%;
}

/* HIW card — white */
.hp-hiw-card {
  background: #FFFFFF;
  border: 1px solid rgba(40, 175, 176, 0.25);
  border-radius: 20px;
  padding: 1.75rem;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* White card: flip internal text colours to dark */
.hp-hiw-card .hp-score-card-title   { color: rgba(22, 46, 34, 0.5); }
.hp-hiw-card .hp-score-name-badge   { color: rgba(22, 46, 34, 0.6); background: rgba(22, 46, 34, 0.06); }
.hp-hiw-card .hp-score-divider      { background: rgba(22, 46, 34, 0.08); }
.hp-hiw-card .hp-trait-name         { color: rgba(22, 46, 34, 0.55); }
.hp-hiw-card .hp-trait-bar-wrap     { background: rgba(22, 46, 34, 0.07); }
.hp-hiw-card .hp-trait-val          { color: rgba(22, 46, 34, 0.75); }
.hp-hiw-card .hp-hiw-progress-label { color: rgba(22, 46, 34, 0.55); }
.hp-hiw-card .hp-hiw-progress-bar-wrap { background: rgba(22, 46, 34, 0.07); }
.hp-hiw-card .hp-hiw-mini-stat      { color: rgba(22, 46, 34, 0.5); }
.hp-hiw-card .hp-hiw-pers-label     { color: rgba(22, 46, 34, 0.4); }
.hp-hiw-card .hp-hiw-pers-item      { background: rgba(22, 46, 34, 0.04); }
.hp-hiw-card .hp-hiw-candidate-name { color: rgba(22, 46, 34, 0.65); }
.hp-hiw-card .hp-hiw-candidate-row  { background: rgba(22, 46, 34, 0.04); }
.hp-hiw-card .hp-hiw-input-mock,
.hp-hiw-card .hp-hiw-select-mock    { color: rgba(22, 46, 34, 0.5); background: rgba(22, 46, 34, 0.04); border-color: rgba(22, 46, 34, 0.1); }

/* Burnout risk row: badge replaces the bar, no bar-wrap needed */
.hp-trait--badge { align-items: center; }
.hp-trait--badge .hp-hiw-burnout-badge { flex: 1; }

/* HIW trait bars: static (no entry animation) */
.hp-hiw-card .hp-trait-bar {
  animation: none;
  transform: none;
}

@keyframes hiwFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* Panel 1 – Invite form mock */
.hp-hiw-form-mock {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.hp-hiw-input-mock,
.hp-hiw-select-mock {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: rgba(217, 237, 232, 0.55);
}
.hp-hiw-select-mock { justify-content: space-between; }

.hp-hiw-btn-mock {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: #28AFB0;
  color: #fff;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: default;
  font-family: 'Open Sans', sans-serif;
}

.hp-hiw-mini-stats { display: flex; flex-direction: column; gap: 0.4rem; }

.hp-hiw-mini-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(217, 237, 232, 0.5);
}

/* Panel 2 – Progress bars */
.hp-hiw-progress-item { margin-bottom: 1rem; }

.hp-hiw-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(217, 237, 232, 0.6);
  margin-bottom: 0.4rem;
}

.hp-hiw-progress-bar-wrap {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.hp-hiw-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #28AFB0, #1e9293);
  border-radius: 3px;
  width: var(--w);
}

/* Panel 3 – Personality mini-row */
.hp-hiw-personality {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.hp-hiw-pers-item {
  flex: 1;
  text-align: center;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.hp-hiw-pers-label {
  display: block;
  font-size: 0.65rem;
  color: rgba(217, 237, 232, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hp-hiw-pers-val {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #28AFB0;
  margin-top: 0.2rem;
}

/* Panel 4 – Candidate match row */
.hp-hiw-candidate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  margin-top: 0.75rem;
}

.hp-hiw-candidate-name {
  font-size: 0.82rem;
  color: rgba(217, 237, 232, 0.7);
}

.hp-hiw-fit-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #28AFB0;
  background: rgba(40, 175, 176, 0.12);
  border: 1px solid rgba(40, 175, 176, 0.3);
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
}

.hp-hiw-burnout-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #28AFB0;
  background: rgba(40, 175, 176, 0.1);
  border: 1px solid rgba(40, 175, 176, 0.25);
  padding: 0.15rem 0.6rem;
  border-radius: 100px;
}

/* ═══ CTA SECTION ════════════════════════════════════════════ */

.hp-cta {
  background: #162E22;
  padding: 4.5rem 1.75rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hp-cta-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hp-cta-deco-1 { width: 480px; height: 480px; top: -190px; left: -140px; border: 1px solid rgba(40, 175, 176, 0.1); }
.hp-cta-deco-2 { width: 280px; height: 280px; bottom: -110px; right: -70px; border: 1px solid rgba(40, 175, 176, 0.18); }

.hp-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.hp-cta h2 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #D9EDE8;
  margin: 0 0 0.75rem;
}
.hp-cta-sub {
  font-size: 1rem;
  color: rgba(217, 237, 232, 0.5);
  line-height: 1.6;
  margin: 0 0 2.25rem;
}

.hp-cta-form {
  display: flex;
  gap: 0.75rem;
  max-width: 500px;
  margin: 0 auto;
}

.hp-cta-input {
  flex: 1;
  height: 52px;
  padding: 0 1rem;
  border: 1.5px solid rgba(217, 237, 232, 0.2);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  color: #D9EDE8;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.hp-cta-input::placeholder { color: rgba(217, 237, 232, 0.3); }
.hp-cta-input:focus {
  border-color: #28AFB0;
  box-shadow: 0 0 0 3px rgba(40, 175, 176, 0.15);
  background: rgba(255, 255, 255, 0.1);
}

.hp-cta-btn {
  flex-shrink: 0;
  height: 52px;
  padding: 0 1.75rem;
  background: #28AFB0;
  color: #fff;
  border: none;
  border-radius: 9px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}
.hp-cta-btn:hover {
  background: #1e9293;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(40, 175, 176, 0.35);
}
.hp-cta-btn:active { transform: none; }

/* ═══ HOMEPAGE FOOTER ════════════════════════════════════════ */

.hp-footer {
  background: #FFFFFF;
  border-top: 1px solid #DDE8E4;
}

.hp-footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 3rem 1.75rem 2.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.hp-footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.hp-footer-col-hdr {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #162E22;
  margin-bottom: 0.35rem;
}

.hp-footer-brand {
  display: inline-block;
  margin-bottom: 0.75rem;
  text-decoration: none;
}
.hp-footer-brand:hover { opacity: 0.85; }

.hp-footer-tagline {
  font-size: 0.875rem;
  color: #8A9E97;
  line-height: 1.55;
  margin: 0;
  max-width: 240px;
}

.hp-footer-col a {
  font-size: 0.875rem;
  color: #5A7268;
  text-decoration: none;
  line-height: 1.6;
  transition: color 0.18s;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.hp-footer-col a:hover { color: #162E22; }
.hp-footer-icon { font-size: 0.875rem; flex-shrink: 0; }

/* Footer bottom: EU acknowledgment + copyright */
.hp-footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.875rem 1.75rem 1.5rem;
  border-top: 1px solid #DDE8E4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hp-eu-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hp-eu-flag {
  height: 28px;
  width: auto;
  display: block;
  border-radius: 3px;
}

.hp-eu-text {
  font-size: 0.78rem;
  color: #8A9E97;
  line-height: 1.4;
}

.hp-footer-bottom-copy {
  font-size: 0.75rem;
  color: #B0C0BC;
  white-space: nowrap;
}

/* ═══ PLATFORM FOOTER (injected into layout.ejs) ════════════ */

.platform-footer {
  padding: 1rem 1.5rem;
  background: #f4f6f8;
  border-top: 1px solid #e5eaed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.platform-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.1rem;
}
.platform-footer-links a {
  font-size: 0.78rem;
  color: #8A9E97;
  text-decoration: none;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  transition: color 0.18s;
}
.platform-footer-links a:hover { color: #162E22; }

.platform-footer-copy {
  font-size: 0.75rem;
  color: #B8CCC6;
}

/* ═══ PUBLIC PAGES ═══════════════════════════════════════════ */

body.page-public { background: #F5F3EF; font-size: 18px; }

.public-content {
  padding: 5.5rem 1.75rem 4rem;
  min-height: calc(100vh - 64px - 180px);
}

.public-content-wrap {
  max-width: 780px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid #DDE8E4;
  border-radius: 16px;
  padding: 2.75rem 2.5rem;
}

.public-content-wrap h1 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #162E22;
  margin: 0 0 0.5rem;
  line-height: 1.2;
  padding-bottom: 1rem;
  border-bottom: 1.5px solid #DDE8E4;
}
.public-content-wrap h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #162E22;
  margin: 2rem 0 0.5rem;
}
.public-content-wrap h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #162E22;
  margin: 1.5rem 0 0.4rem;
}
.public-content-wrap p {
  font-size: 0.9375rem;
  color: #4A5E58;
  line-height: 1.75;
  margin: 0 0 0.75rem;
}
.public-content-wrap ul,
.public-content-wrap ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 0.875rem;
}
.public-content-wrap li {
  font-size: 0.9375rem;
  color: #4A5E58;
  line-height: 1.7;
  margin-bottom: 0.3rem;
}
.public-content-wrap a { color: #28AFB0; text-decoration: none; }
.public-content-wrap a:hover { text-decoration: underline; }
.public-content-wrap h2 > strong,
.public-content-wrap h3 > strong { font-weight: inherit; }

/* ═══ RESPONSIVE — TABLET (≤ 991px) ═════════════════════════ */

@media (max-width: 991px) {
  .hp-hero-h1    { font-size: 3rem; }
  .hp-hero-inner { padding: 6rem 1.75rem 3.5rem; gap: 2.5rem; }
  .hp-hero-cards { flex: 0 0 290px; }
  .hp-hiw-panel-col { flex: 0 0 290px; }
  .hp-split { gap: 3rem; }
  .hp-split-media { flex: 0 0 38%; }
  .hp-split-copy h2 { font-size: 1.875rem; }
  .hp-section-hdr h2 { font-size: 1.875rem; }
  .hp-cta h2 { font-size: 1.875rem; }

  .hp-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .hp-footer-col:first-child { grid-column: 1 / -1; }
}

/* ═══ RESPONSIVE — MOBILE (≤ 767px) ═════════════════════════ */

@media (max-width: 767px) {
  .hp-hero { min-height: auto; }
  .hp-hero-inner { padding: 5.5rem 1.25rem 3rem; flex-direction: column; text-align: center; gap: 2.5rem; }
  .hp-hero-copy { margin-bottom: 0; }
  .hp-hero-h1   { font-size: 2.25rem; }
  .hp-hero-sub  { max-width: 100%; margin: 0 auto 2.5rem; }
  .hp-hero-cards { flex: none; width: 100%; max-width: 340px; }

  .hp-hiw { padding: 3rem 1.25rem; }
  .hp-hiw-layout { flex-direction: column; gap: 2rem; }

  /* Steps: vertical list */
  .hp-hiw-steps { flex: none; width: 100%; }
  .hp-hiw-step { padding: 0.85rem 1rem; }
  .hp-hiw-num { font-size: 1.25rem; }

  /* Panels: in-flow, one at a time */
  .hp-hiw-panel-col { flex: none; width: 100%; }
  .hp-hiw-panels { position: relative; flex: none; width: 100%; min-height: 0; }
  .hp-hiw-panel { position: relative; display: none; opacity: 1; transform: none; pointer-events: auto; }
  .hp-hiw-panel.active { display: block; animation: hiwFadeIn 0.3s ease; }

  .hp-section { padding: 2.5rem 1.25rem; }
  .hp-split, .hp-split--rev { flex-direction: column; gap: 2rem; }
  .hp-split-media { flex: none; width: 100%; }
  .hp-split-copy h2 { font-size: 1.5rem; }

  .hp-approach { padding: 2.5rem 1.25rem; }
  .hp-approach-grid { grid-template-columns: 1fr; }
  .hp-section-hdr h2 { font-size: 1.5rem; }

  .hp-cta { padding: 3rem 1.25rem; }
  .hp-cta h2 { font-size: 1.625rem; }
  .hp-cta-form { flex-direction: column; }
  .hp-cta-input, .hp-cta-btn { width: 100%; }

  .hp-footer-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 2.5rem 1.25rem 2rem;
  }
  .hp-footer-col:first-child { grid-column: auto; }
  .hp-footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 0.875rem 1.25rem 1.25rem;
  }
  .hp-eu-badge { flex-direction: column; gap: 0.5rem; }

  .public-content { padding: 5rem 1.25rem 3rem; }
  .public-content-wrap { padding: 1.75rem 1.25rem; }
  .public-content-wrap h1 { font-size: 1.5rem; }

  .platform-footer { flex-direction: column; text-align: center; }
}

/* ═══ RESPONSIVE — SMALL MOBILE (≤ 480px) ═══════════════════ */

@media (max-width: 480px) {
  .hp-hero-h1 { font-size: 1.875rem; }
  .hp-hero-inner { padding-top: 5rem; }
  .hp-nav { padding: 0 1rem; }
}
