/* ==========================================================================
   How It Works page — dedicated styles (prefix: hw-)
   Built from Figma node 11:398 "JobsMeetTalent_ How It Works.png"
   ========================================================================== */

/* ---------- Hero ----------
   One implementation, in normal document flow. The section's height comes from
   its content: badge -> heading -> text -> the two visuals. No fixed heights.
   Each visual is real markup: a CSS shape, a sharp cut-out photo and HTML cards.
*/
.hw-hero {
  background: linear-gradient(120deg, #fffaf0 0%, #fffcf7 100%);
  padding: 40px clamp(16px, 4vw, 32px) 0;
  text-align: center;
  overflow: hidden;
}
.hw-hero-copy { max-width: 1040px; margin: 0 auto; }
.hw-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(1.75rem, 1.15rem + 2.4vw, 2.625rem);
  line-height: 1.14; font-weight: 800; letter-spacing: -0.5px;
  color: #06132e; text-wrap: balance;
}
.hw-hero h1 .accent { color: #e9ab29; }
.hw-hero p.lead { max-width: 650px; margin: 0 auto; font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem); line-height: 1.6; color: #606b81; }
.hw-hero p.lead .accent-link { color: #e9ab29; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }

.hw-visual {
  max-width: 1120px; margin: 32px auto 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 5vw, 72px);
  align-items: end;
}
.hw-figure { position: relative; width: 100%; max-width: 500px; aspect-ratio: 25 / 18; margin: 0; }
.hw-figure-candidate { justify-self: end; }
.hw-figure-employer { justify-self: start; }
.hw-figure-shape { position: absolute; left: 14%; right: 14%; bottom: 0; height: 80%; }
.hw-figure-candidate .hw-figure-shape { background: #ffe9ad; border-radius: 50% 50% 0 0 / 62% 62% 0 0; }
.hw-figure-employer .hw-figure-shape { background: #e1eeff; border-radius: 46% 54% 0 0 / 58% 66% 0 0; }
/* The photo is clipped only at the bottom edge of the hero, below the laptop. */
.hw-figure-photo { position: absolute; left: 0; right: 0; top: 0; bottom: 0; overflow: hidden; }
.hw-figure-photo img { position: absolute; left: 50%; top: 4%; height: auto; max-width: none; }
.hw-figure-candidate .hw-figure-photo img { width: 50%; margin-left: -22%; }
.hw-figure-employer .hw-figure-photo img { width: 56%; margin-left: -31%; top: 9%; }

.hw-float {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: 12px; background: #fff;
  box-shadow: 0 10px 28px rgba(6, 19, 46, 0.10), 0 1px 3px rgba(6, 19, 46, 0.05);
  text-align: left; white-space: nowrap;
}
.hw-float-ico { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.hw-float b { display: block; font-size: 13px; font-weight: 800; line-height: 1.3; color: #06132e; }
.hw-float small { display: block; font-size: 11.5px; line-height: 1.3; color: #606c81; }
.hw-figure-candidate .hw-float-1 { left: 0; top: 6%; }
.hw-figure-candidate .hw-float-2 { left: 4%; bottom: 14%; }
.hw-figure-employer .hw-float-1 { right: 0; top: 16%; }
.hw-figure-employer .hw-float-2 { right: 0; top: 46%; }

/* Tablet: same two-up layout, slightly tighter. */
@media (max-width: 900px) {
  .hw-hero { padding-top: 32px; }
  .hw-visual { margin-top: 24px; }
  .hw-float { padding: 8px 12px 8px 8px; gap: 8px; }
  .hw-float-ico { width: 28px; height: 28px; border-radius: 8px; }
  .hw-float b { font-size: 12.5px; }
}
/* Phones: candidate first, employer second, each at a readable size. */
@media (max-width: 600px) {
  .hw-visual { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hw-figure { max-width: 400px; justify-self: center; }
  .hw-figure-candidate .hw-float-1 { top: 2%; }
  .hw-figure-employer .hw-float-1 { top: 6%; }
  .hw-figure-employer .hw-float-2 { top: 40%; }
}

/* ---------- "N steps" audience sections ---------- */
.hw-section { padding: 48px 32px; }
.hw-section-alt { background: #fafbfd; }
.hw-section-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 330px 1fr; gap: 40px; align-items: start;
}
@media (max-width: 860px) {
  .hw-section-inner { grid-template-columns: 1fr; }
}

.hw-audience-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: 15px;
  font-size: 12px; font-weight: 700; margin-bottom: 18px;
}
.hw-audience-badge .hw-badge-ico {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.hw-badge-blue { background: #e2f1ff; color: #0066e0; }
.hw-badge-blue .hw-badge-ico { background: #cfe8ff; }
.hw-badge-purple { background: #f2e3ff; color: #7800c7; }
.hw-badge-purple .hw-badge-ico { background: #e7cfff; }

.hw-info-col h2 { font-size: 24px; font-weight: 800; color: #06132e; margin: 0 0 10px; letter-spacing: -0.4px; line-height: 1.25; text-align: left; }
.hw-info-col p.hw-info-lead { font-size: 13px; line-height: 1.6; color: #5f6d83; margin: 0 0 28px; }

.hw-mock-wrap { display: flex; justify-content: center; }
.hw-mock-card {
  background: #fff;
  border: 1px solid #f1f4fa;
  border-radius: 13px;
  box-shadow: 0 10px 22px rgba(53,92,170,0.1);
  padding: 14px 16px;
  width: 100%;
  max-width: 280px;
  transform: rotate(-2deg);
}
.hw-mock-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.hw-mock-icon { width: 30px; height: 30px; border-radius: 7px; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; }
.hw-mock-top h4 { font-size: 12px; font-weight: 700; color: #06132e; margin: 0; }
.hw-mock-top span { font-size: 10px; color: #606c81; }
.hw-mock-featured { margin-left: auto; font-size: 9.5px; font-weight: 700; color: #0082ff; white-space: nowrap; }
.hw-mock-meta { font-size: 10px; color: #606c81; margin: 0 0 8px; }
.hw-mock-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.hw-mock-tags span { background: #f2f5fb; color: #62718a; font-size: 9px; padding: 3px 7px; border-radius: 5px; }
.hw-mock-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hw-mock-price { font-size: 11px; font-weight: 700; color: #06132e; }
.hw-mock-btn {
  background: #e9ab29; color: #06132e; font-size: 10px; font-weight: 700;
  padding: 7px 16px; border-radius: 5px; display: inline-flex;
}

.hw-mock-dash-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 2px 0 10px; }
.hw-mock-dash-tabs span { font-size: 9px; padding: 4px 9px; border-radius: 12px; background: #f7f9fc; color: #06132e; }
.hw-mock-dash-tabs span.active { background: #0066e0; color: #fff; }
.hw-mock-applicant { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid #f3f5fa; }
.hw-mock-applicant:first-of-type { border-top: none; }
.hw-mock-av { width: 26px; height: 26px; border-radius: 50%; background: #e9edf5; flex: none; display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:700;color:#5b6a86; }
.hw-mock-applicant b { display: block; font-size: 10px; font-weight: 700; color: #06132e; }
.hw-mock-applicant small { display: block; font-size: 9px; color: #606c81; }
.hw-mock-stage { margin-left: auto; font-size: 8.5px; background: #edf6ff; color: #006acf; padding: 3px 8px; border-radius: 10px; white-space: nowrap; }

.hw-steps { display: flex; flex-direction: column; }
.hw-step {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 14px 0; border-bottom: 1px solid #f5f6f8;
}
.hw-step:last-child { border-bottom: none; }
.hw-step-num {
  flex: none; width: 29px; height: 29px; border-radius: 50%;
  background: #03132e; color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 3px #fafafa;
}
.hw-section:not(.hw-section-alt) .hw-step-num { box-shadow: 0 0 0 3px #ffffff; }
.hw-step-body { display: flex; gap: 14px; flex: 1; min-width: 0; }
.hw-step-icon {
  flex: none; width: 39px; height: 39px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.hw-step-text h3 { font-size: 14px; font-weight: 700; color: #06132e; margin: 0 0 3px; }
.hw-step-text p { font-size: 12.5px; line-height: 1.5; color: #5f6b82; margin: 0; }

/* step icon tints */
.hw-tint-blue { background: #e9f4ff; color: #0676ff; }
.hw-tint-amber { background: #fff4db; color: #ffb000; }
.hw-tint-green { background: #def9e8; color: #00bd62; }
.hw-tint-purple { background: #f3e4ff; color: #9100ff; }

/* ---------- Trust grid ---------- */
.hw-trust { padding: 40px 32px 56px; text-align: center; }
.hw-trust-inner { max-width: 1060px; margin: 0 auto; }
.hw-trust h2 { font-size: 24px; font-weight: 800; color: #06132e; margin: 0 0 8px; }
.hw-trust > .hw-trust-inner > p { font-size: 13px; color: #5f6d83; margin: 0 0 28px; }
.hw-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) { .hw-trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .hw-trust-grid { grid-template-columns: 1fr; } }
.hw-trust-card {
  border: 1px solid #edf0f6; border-radius: 12px; padding: 18px 16px 20px;
  text-align: left;
}
.hw-trust-card .hw-badge-ico {
  width: 32px; height: 32px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.hw-trust-card h3 { font-size: 13.5px; font-weight: 700; color: #06132e; margin: 0 0 6px; }
.hw-trust-card p { font-size: 11.5px; line-height: 1.5; color: #606c83; margin: 0; }

/* ---------- Dark CTA band ---------- */
.hw-cta {
  max-width: 1160px; margin: 8px auto 56px; border-radius: 16px;
  background: #06132e; position: relative; overflow: hidden; color: #fff;
  padding: 40px 36px 180px;
}
.hw-cta .hw-eyebrow { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #a3aec2; font-weight: 600; }
.hw-cta h2 { font-size: 30px; font-weight: 800; margin: 10px 0 0; color: #ffffff; text-align: left; letter-spacing: -0.5px; }
.hw-cta h2 span { color: #e9ab29; }
.hw-cta p { font-size: 14.5px; color: #bbc4d4; margin-top: 10px; max-width: 480px; }
.hw-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hw-cta-btns .jmt-btn { height: 44px; padding: 0 20px; }

.hw-minis { position: absolute; right: 10px; top: 36px; width: 480px; height: 170px; display: none; }
.hw-mini {
  position: absolute; width: 155px; background: #fff; border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25); padding: 14px; color: #06132e;
}
.hw-mini .hw-ico { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.hw-mini b { display: block; font-size: 12px; font-weight: 700; }
.hw-mini small { display: block; font-size: 10.5px; color: #5f6b88; margin-top: 1px; }
.hw-mini .hw-bar { height: 4px; border-radius: 4px; background: #dfe5ee; margin-top: 10px; }
.hw-mini .hw-bar.w2 { width: 70%; }
.hw-mini .hw-bar.w3 { width: 50%; }
.hw-m1 { left: 0; top: 22px; transform: rotate(-6deg); z-index: 1; }
.hw-m2 { left: 165px; top: 2px; transform: rotate(-3deg); z-index: 3; }
.hw-m3 { left: 330px; top: 30px; transform: rotate(5deg); z-index: 2; }

@media (min-width: 1040px) {
  .hw-minis { display: block; }
  .hw-cta { padding: 48px 450px 48px 44px; }
}
@media (max-width: 560px) {
  .hw-cta h2 { font-size: 24px; }
  .hw-cta-btns { flex-direction: column; align-items: stretch; }
  .hw-cta-btns .jmt-btn { width: 100%; }
}
