/* ==========================================================
   JobPilot Africa — Landing Page Styles
   ========================================================== */

:root {
  --navy: #0A2E5C;
  --navy-dark: #071f40;
  --green: #16A34A;
  --green-dark: #128a3e;
  --gold: #D4AF37;
  --white: #FFFFFF;
  --grey-light: #F3F4F6;
  --grey-dark: #374151;

  --border: #E5E7EB;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(10, 46, 92, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 46, 92, 0.08);
  --shadow-lg: 0 20px 48px rgba(10, 46, 92, 0.14);
  --container-w: 1140px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--grey-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}
.scroll-progress::before {
  content: '';
  display: block;
  height: 100%;
  width: var(--scroll-pct, 0%);
  background: linear-gradient(90deg, var(--green), var(--gold));
  transition: width 0.05s linear;
}

/* Give hover-interactive cards their own stacking context so a lifted
   card's shadow/transform reliably renders above its grid neighbors. */
.card, .step, .feature, .category-card, .opportunity-card,
.stats-strip, .section-head, .cta-inline, .final-cta-inner {
  position: relative;
  z-index: 1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 48%, rgba(255, 255, 255, 0.35) 52%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
.btn:hover::before { transform: translateX(120%); }
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.28);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 24px rgba(22, 163, 74, 0.34); }
.btn-primary:active { transform: translateY(0) scale(0.99); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--navy); background: var(--grey-light); transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(10, 46, 92, 0);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 8px 24px rgba(10, 46, 92, 0.09); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: flex; }
.brand-name {
  font-weight: 800;
  font-size: 18px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand-name-accent { color: var(--green); }
.footer-brand-name { color: #fff; font-size: 19px; }

.main-nav {
  display: none;
  align-items: center;
  gap: 28px;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--grey-dark);
}
.main-nav a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s ease;
}
.main-nav a:hover { color: var(--green); }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* "Find Jobs" nav pill — the entry point into the search page, so it gets
   a little visual weight instead of blending into the plain text links. */
.main-nav a.nav-highlight,
.mobile-nav a.nav-highlight {
  color: var(--green);
  font-weight: 700;
}
.main-nav a.nav-highlight {
  background: #E7F7EC;
  padding: 7px 14px;
  border-radius: 999px;
}
.main-nav a.nav-highlight::after { display: none; }
.main-nav a.nav-highlight:hover { background: var(--green); color: #fff; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .btn-primary { display: none; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 0;
  overflow: hidden;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: max-height 0.28s ease, border-color 0.28s ease;
}
.mobile-nav.open { max-height: 340px; border-color: var(--border); }
.mobile-nav a {
  padding: 14px 20px;
  font-weight: 500;
  font-size: 15px;
  border-top: 1px solid var(--border);
}
.mobile-nav .btn { margin: 14px 20px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%); }
/* hero-top contains the blobs' absolute positioning context — deliberately
   does NOT include .stats-strip below, so the blobs can never paint over it
   (they used to, when .hero itself was the containing block: an absolutely
   positioned z-index:0 layer paints *after* — i.e. on top of — a plain
   static in-flow sibling like .stats-strip in CSS's stacking order, which
   is what was washing out the ₦2,000 stat). */
.hero-top { position: relative; overflow: hidden; }
.hero-inner {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 56px 20px 48px;
  align-items: center;
}

/* Ambient background blobs — confined to .hero-top, sized with clamp() so
   they scale down on narrow screens instead of overlapping the headline. */
.hero-blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(calc(var(--hero-scroll, 0) * 30px));
  opacity: calc(1 - var(--hero-scroll, 0) * 0.6);
  transition: opacity 0.1s linear;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.14;
  will-change: transform;
}
.blob-green {
  width: clamp(110px, 34vw, 340px);
  height: clamp(110px, 34vw, 340px);
  background: var(--green);
  top: -12%;
  left: -10%;
  animation: blobDrift 16s ease-in-out infinite;
}
.blob-gold {
  width: clamp(90px, 24vw, 240px);
  height: clamp(90px, 24vw, 240px);
  background: var(--gold);
  top: 42%;
  right: -8%;
  animation: blobDrift 20s ease-in-out infinite reverse;
}
.blob-navy {
  width: clamp(100px, 28vw, 280px);
  height: clamp(100px, 28vw, 280px);
  background: var(--navy);
  bottom: -14%;
  left: 22%;
  opacity: 0.09;
  animation: blobDrift 18s ease-in-out infinite;
  animation-delay: -4s;
}
@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(16px, 12px) scale(1.06); }
  66% { transform: translate(-12px, 16px) scale(0.96); }
}
@media (max-width: 480px) {
  .blob { filter: blur(28px); opacity: 0.12; }
  .blob-green { top: -14%; left: -14%; }
  .blob-gold { top: 46%; right: -12%; }
}

/* Staggered hero entrance */
.hero-in {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-in-1 { animation-delay: 0.05s; }
.hero-in-2 { animation-delay: 0.15s; }
.hero-in-3 { animation-delay: 0.28s; }
.hero-in-4 { animation-delay: 0.4s; }
.hero-in-5 { animation-delay: 0.5s; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 12px;
}
.hero h1 {
  font-size: clamp(30px, 6vw, 48px);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.text-accent { color: var(--green); }
.hero-sub {
  font-size: 17px;
  color: var(--grey-dark);
  max-width: 540px;
  margin-bottom: 26px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.hero-note { font-size: 13.5px; color: #6B7280; }

.hero-visual { display: flex; justify-content: center; perspective: 1000px; }
.phone-card-float {
  width: 100%;
  max-width: 360px;
  animation: floatBob 5s ease-in-out 1.1s infinite;
}
.phone-card {
  width: 100%;
  background: var(--navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
  will-change: transform;
}
@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.phone-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.phone-card-header .dot { width: 9px; height: 9px; border-radius: 50%; }
.phone-card-title {
  margin-left: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 12.5px;
  font-weight: 600;
}
.phone-card-body { padding: 18px 16px 22px; display: flex; flex-direction: column; gap: 10px; }
.chat-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  max-width: 88%;
  opacity: 0;
}
.chat-bubble.bot {
  background: rgba(255,255,255,0.08);
  color: #E5E7EB;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  transform: translate(-10px, 6px);
}
.chat-bubble.user {
  background: var(--green);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  transform: translate(10px, 6px);
}
.bubble-1 { animation-delay: 0.9s; }
.bubble-2 { animation-delay: 1.6s; }
.bubble-3 { animation-delay: 2.75s; }
@keyframes bubbleIn { to { opacity: 1; transform: translate(0, 0); } }

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  padding: 10px 12px;
  opacity: 0;
  animation-delay: 2.2s;
}
.typing-indicator span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  animation: dotPulse 1s ease-in-out infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.15s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingAppear {
  0% { opacity: 0; }
  15%, 80% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes dotPulse {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-3px); opacity: 1; }
}

.cv-preview {
  margin-top: 8px;
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(6px);
  animation-delay: 3.35s;
}
.cv-line {
  height: 8px;
  border-radius: 4px;
  background: var(--grey-light);
  width: 80%;
  transform: scaleX(0);
  transform-origin: left;
  animation-delay: 3.55s;
}
.cv-line-title { width: 45%; height: 10px; background: var(--gold); animation-delay: 3.45s; }
.cv-line:nth-of-type(2) { animation-delay: 3.6s; }
.cv-line:nth-of-type(3) { animation-delay: 3.72s; }
.cv-line:nth-of-type(4) { animation-delay: 3.84s; }

/* All of the above are dormant (opacity:0, no animation-name) until the
   hero mockup scrolls into view — see IntersectionObserver in script.js.
   Longhand animation-* properties here (never the shorthand) so they layer
   on top of the animation-delay values above instead of resetting them. */
.phone-card-body.chat-animate .chat-bubble {
  animation-name: bubbleIn;
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: forwards;
}
.phone-card-body.chat-animate .typing-indicator {
  animation-name: typingAppear;
  animation-duration: 1.15s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}
.phone-card-body.chat-animate .cv-preview {
  animation-name: bubbleIn;
  animation-duration: 0.5s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}
.phone-card-body.chat-animate .cv-line {
  animation-name: growLine;
  animation-duration: 0.5s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}
@keyframes growLine { to { transform: scaleX(1); } }

/* Stats strip */
.stats-strip { background: var(--navy); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 30px 20px;
}
.stat { text-align: center; }
/* 5th tile (live jobs) sits alone on the last mobile row — span both
   columns so it centers instead of hugging the left edge. */
.stats-grid .stat:last-child:nth-child(5) { grid-column: 1 / -1; }
.stat-num { display: block; font-size: 26px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.stat-label { display: block; font-size: 12.5px; color: rgba(255,255,255,0.75); margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section:nth-of-type(even) { background: var(--grey-light); }
.section-head { max-width: 620px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(24px, 4vw, 34px); letter-spacing: -0.01em; }
.section-sub { color: #6B7280; font-size: 15.5px; }

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grey-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.25s ease, background 0.25s ease;
}
.card:hover .card-icon { transform: scale(1.08) rotate(-4deg); background: #E7F7EC; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: #6B7280; font-size: 14.5px; }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-bottom: 40px;
}
.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 800;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  transition: transform 0.25s ease, background 0.25s ease;
}
.step:hover .step-num { transform: scale(1.1); background: var(--green); }
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { color: #6B7280; font-size: 14.5px; }
.cta-inline { text-align: center; }

/* Why us */
.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--gold);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 14px;
  transition: transform 0.25s ease;
}
.feature:hover .feature-badge { transform: scale(1.1) rotate(-4deg); }
.feature h3 { font-size: 16.5px; margin-bottom: 6px; }
.feature p { color: #6B7280; font-size: 14.5px; }

/* Categories */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 16px;
  border-left: 4px solid var(--green);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  opacity: 0;
  transform: translateY(14px);
}
.category-grid.is-visible .category-card {
  animation: fadeInUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--gold);
}
.category-card .cat-name { display: block; font-weight: 600; font-size: 14px; color: var(--navy); margin-bottom: 3px; }
.category-card .cat-count { display: block; font-size: 12.5px; color: #6B7280; }

/* Live Opportunities */
.opportunity-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 32px;
}
.opportunity-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(14px);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.opportunity-grid.is-visible .opportunity-card {
  animation: fadeInUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.opportunity-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--green);
}
.opportunity-main { min-width: 0; }
.opportunity-title {
  display: block;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--navy);
  margin-bottom: 4px;
}
.opportunity-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6B7280;
}
.opportunity-meta .dot-sep::before { content: '·'; margin-right: 8px; color: #C7CCD3; }
.opportunity-category {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  background: #E7F7EC;
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}
.opportunity-salary {
  font-weight: 700;
  color: var(--navy);
}

/* ---------- Jobs search page (jobs.html) ---------- */

/* Header banner: same soft gradient + drifting blob treatment as the hero,
   scoped to its own container so it doesn't depend on hero markup. */
.jobs-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  padding: 48px 0 40px;
  text-align: center;
}
.jobs-hero-blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.jobs-hero-blobs .blob-green { top: -18%; left: -8%; }
.jobs-hero-blobs .blob-gold { top: 30%; right: -10%; }
.jobs-hero-blobs .blob-navy { bottom: -22%; left: 30%; opacity: 0.08; }
.jobs-hero-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.jobs-hero .eyebrow { justify-content: center; display: flex; }
.jobs-hero h1 { font-size: clamp(26px, 5vw, 38px); letter-spacing: -0.02em; }
.jobs-hero-sub { color: var(--grey-dark); font-size: 15.5px; max-width: 480px; margin: 0 auto 20px; }

/* Live database indicator — small pulsing dot + count, sits between the
   subhead and the search bar so the "this is real and live" signal lands
   before the user even starts typing. */
.live-jobs-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #E7F7EC;
  color: var(--green-dark);
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: liveDotPulse 1.8s ease-in-out infinite;
}
@keyframes liveDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.45); }
  50% { box-shadow: 0 0 0 5px rgba(22, 163, 74, 0); }
}
.live-jobs-badge.is-fallback { background: #FFF7E6; color: #8A6116; }
.live-jobs-badge.is-fallback .live-dot {
  background: var(--gold);
  animation: none;
  box-shadow: none;
}

/* Search bar */
.jobs-search-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 10px;
  max-width: 620px;
  margin: 0 auto;
}
.jobs-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  flex: 1;
}
.jobs-search-input-wrap svg { flex-shrink: 0; color: #9AA3AF; }
.jobs-search-input-wrap input {
  border: none;
  outline: none;
  font: inherit;
  font-size: 15px;
  color: var(--grey-dark);
  width: 100%;
  background: transparent;
}
.jobs-search-input-wrap input::placeholder { color: #9AA3AF; }
.jobs-filter-select {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  background: var(--grey-light);
  cursor: pointer;
}
.jobs-filter-select:focus { outline: 2px solid var(--green); outline-offset: 1px; }

/* Live "searching" indicator — three bouncing dots in brand colours, shown
   briefly while a search/filter is being applied so it reads as a live
   lookup rather than an instant client-side filter. */
.search-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 36px 0;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}
.search-loading.is-active { display: flex; }
.search-loading .dots { display: flex; gap: 6px; }
.search-loading .dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  animation: searchDotPulse 1s ease-in-out infinite;
}
.search-loading .dots span:nth-child(1) { background: var(--green); animation-delay: 0s; }
.search-loading .dots span:nth-child(2) { background: var(--gold); animation-delay: 0.15s; }
.search-loading .dots span:nth-child(3) { background: var(--navy); animation-delay: 0.3s; }
@keyframes searchDotPulse {
  0%, 60%, 100% { transform: translateY(0) scale(1); opacity: 0.55; }
  30% { transform: translateY(-6px) scale(1.15); opacity: 1; }
}

.jobs-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.jobs-results-count { font-size: 14px; color: #6B7280; font-weight: 600; }
.jobs-results-count strong { color: var(--navy); }

.jobs-fallback-notice {
  display: none;
  background: #FFF7E6;
  border: 1px solid #F3D9A0;
  color: #8A6116;
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin: -6px 0 18px;
}
.jobs-fallback-notice.is-active { display: block; }

.jobs-results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  transition: opacity 0.2s ease;
}
.jobs-results-grid .opportunity-card {
  opacity: 1;
  transform: none;
  animation: none;
}
.jobs-results-grid .opportunity-card.card-enter {
  animation: fadeInUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.job-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.jobs-empty-state {
  display: none;
  text-align: center;
  padding: 56px 20px;
  color: #6B7280;
}
.jobs-empty-state.is-active { display: block; }
.jobs-empty-state h3 { color: var(--navy); font-size: 18px; margin-bottom: 8px; }
.jobs-empty-state p { font-size: 14.5px; max-width: 380px; margin: 0 auto 20px; }

.jobs-section { padding: 56px 0 96px; }

/* Final CTA */
.section.final-cta { background: var(--navy); }
.final-cta-inner { text-align: center; max-width: 620px; margin: 0 auto; }
.final-cta h2 { color: #fff; font-size: clamp(24px, 4vw, 32px); }
.final-cta p { color: rgba(255,255,255,0.78); margin-bottom: 26px; }
.final-cta .hero-note { color: rgba(255,255,255,0.55); margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.85); padding-top: 52px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-brand .brand { margin-bottom: 12px; }
.footer-motto { font-size: 14px; color: rgba(255,255,255,0.6); max-width: 320px; }
.footer-founder { font-size: 13px; color: rgba(255,255,255,0.45); margin-top: 6px; }
.footer-col h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 14.5px;
  color: rgba(255,255,255,0.75);
  padding: 6px 0;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-align: center;
}

/* ---------- Reveal animation ----------
   Uses a CSS *animation* (not transition) so it never fights with the
   separate hover transitions declared on .card/.step/.feature/.category-card. */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.is-visible {
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Staggered wave for repeated grid items */
.grid-3 .card:nth-child(1), .steps .step:nth-child(1) { animation-delay: 0.02s; }
.grid-3 .card:nth-child(2), .steps .step:nth-child(2) { animation-delay: 0.1s; }
.grid-3 .card:nth-child(3), .steps .step:nth-child(3) { animation-delay: 0.18s; }
.steps .step:nth-child(4) { animation-delay: 0.26s; }

/* Why-us feature grid: two rows of three */
.why-us .feature:nth-child(1) { animation-delay: 0.02s; }
.why-us .feature:nth-child(2) { animation-delay: 0.08s; }
.why-us .feature:nth-child(3) { animation-delay: 0.14s; }
.why-us .feature:nth-child(4) { animation-delay: 0.2s; }
.why-us .feature:nth-child(5) { animation-delay: 0.26s; }
.why-us .feature:nth-child(6) { animation-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  /* Kill auto-playing / scroll-triggered entrance animations, but leave
     hover micro-interactions (transitions) intact since those are
     user-initiated and not the kind of motion this preference targets. */
  .reveal, .category-card, .opportunity-card,
  .hero-in, .chat-bubble, .typing-indicator, .cv-preview, .cv-line,
  .phone-card-float, .blob {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  #phoneCard { transition: none; }
  .btn::before { display: none; }
  .hero-blobs { transform: none !important; opacity: 0.14 !important; }
  html { scroll-behavior: auto; }
  .search-loading span, .live-dot { animation: none !important; }
}

/* ==========================================================
   Breakpoints
   ========================================================== */
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(5, 1fr); }
  .stats-grid .stat:last-child:nth-child(5) { grid-column: auto; }
  .jobs-search-bar { flex-direction: row; align-items: center; }
  .jobs-search-input-wrap { border-right: 1px solid var(--border); }
}

@media (min-width: 860px) {
  .main-nav { display: flex; }
  .header-actions .btn-primary { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }

  .hero-inner { grid-template-columns: 1.05fr 0.95fr; padding: 84px 20px 64px; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 96px 0; }
}
