/**
 * How It Works — Page Stylesheet
 * Scoped to `body.npf-hiw` and `body.npf-hiw .npf-hiw-main`
 * Matches the reference design and platform brand colors accurately.
 */

/* Force hide theme title / wrappers if they leak outside .npf-hiw-main */
body.npf-hiw .page_title,
body.npf-hiw .top-section,
body.npf-hiw .ui.container {
  display: none !important;
}

body.npf-hiw .npf-hiw-main {
  --hiw-font-head: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
  --hiw-font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Brand Colors from platform tokens */
  --hiw-primary: #4f84c3;
  --hiw-primary-dark: #3e6ea6;
  --hiw-primary-soft: #e1eeff;
  --hiw-primary-hover-soft: #c7dbf3;

  --hiw-ink: #020b18;
  --hiw-text-dark: #0b1524;
  --hiw-text-body: #4c5563;
  --hiw-text-muted: #64748b;
  --hiw-border: #e2e8f0;
  --hiw-bg-pill: #e1eeff;

  font-family: var(--hiw-font-body);
  color: var(--hiw-text-body);
  background: #ffffff;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

body.npf-hiw .npf-hiw-main *,
body.npf-hiw .npf-hiw-main *::before,
body.npf-hiw .npf-hiw-main *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── Container ─── */
body.npf-hiw .npf-hiw-main .hiw-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Badge ─── */
body.npf-hiw .npf-hiw-main .hiw-badge {
  display: inline-block;
  background: var(--hiw-primary-soft);
  color: var(--hiw-primary);
  font-family: var(--hiw-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 20px;
}

body.npf-hiw .npf-hiw-main .hiw-badge--pricing {
  margin-bottom: 16px;
}

/* ─── Hero Section ─── */
body.npf-hiw .npf-hiw-main .hiw-hero {
  padding: 70px 0 40px;
  text-align: center;
  background: #ffffff;
}

body.npf-hiw .npf-hiw-main .hiw-hero__title {
  font-family: var(--hiw-font-head);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: var(--hiw-text-dark);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

body.npf-hiw .npf-hiw-main .hiw-hero__subtitle {
  font-family: var(--hiw-font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--hiw-text-body);
  max-width: 640px;
  margin: 0 auto;
}

/* ─── Steps Section ─── */
body.npf-hiw .npf-hiw-main .hiw-steps {
  padding: 30px 0 60px;
  background: #ffffff;
}

body.npf-hiw .npf-hiw-main .hiw-steps__layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

/* Steps Timeline */
body.npf-hiw .npf-hiw-main .hiw-steps__timeline {
  display: flex;
  flex-direction: column;
}

body.npf-hiw .npf-hiw-main .hiw-step {
  display: flex;
  gap: 20px;
  position: relative;
}

body.npf-hiw .npf-hiw-main .hiw-step__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 52px;
}

body.npf-hiw .npf-hiw-main .hiw-step__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--hiw-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hiw-primary);
  flex-shrink: 0;
}

body.npf-hiw .npf-hiw-main .hiw-step__icon svg {
  width: 24px;
  height: 24px;
}

body.npf-hiw .npf-hiw-main .hiw-step__line {
  width: 0;
  border-left: 2px dotted #cbd5e1;
  flex-grow: 1;
  min-height: 50px;
  margin: 8px 0;
}

body.npf-hiw .npf-hiw-main .hiw-step__content {
  padding-top: 4px;
  padding-bottom: 28px;
}

body.npf-hiw .npf-hiw-main .hiw-step__title {
  font-family: var(--hiw-font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--hiw-text-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

body.npf-hiw .npf-hiw-main .hiw-step__desc {
  font-family: var(--hiw-font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--hiw-text-body);
  margin-bottom: 10px;
}

body.npf-hiw .npf-hiw-main .hiw-step__desc:last-child {
  margin-bottom: 0;
}

/* Image Wrap */
body.npf-hiw .npf-hiw-main .hiw-steps__image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

body.npf-hiw .npf-hiw-main .hiw-steps__image {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* ─── Divider ─── */
body.npf-hiw .npf-hiw-main .hiw-divider {
  max-width: 1100px;
  margin: 0 auto;
  height: 1px;
  background: #f1f5f9;
}

/* ─── Pricing Section ─── */
body.npf-hiw .npf-hiw-main .hiw-pricing {
  padding: 60px 0 80px;
  text-align: center;
  background: #ffffff;
}

body.npf-hiw .npf-hiw-main .hiw-pricing__title {
  font-family: var(--hiw-font-head);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  color: var(--hiw-text-dark);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

body.npf-hiw .npf-hiw-main .hiw-pricing__subtitle {
  font-family: var(--hiw-font-body);
  font-size: 15px;
  color: var(--hiw-text-muted);
  margin-bottom: 24px;
}

body.npf-hiw .npf-hiw-main .hiw-pricing__pill-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

body.npf-hiw .npf-hiw-main .hiw-pricing__pill {
  display: inline-block;
  background: var(--hiw-bg-pill);
  padding: 10px 28px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--hiw-text-dark);
}

body.npf-hiw .npf-hiw-main .hiw-pricing__pill-accent {
  color: var(--hiw-primary);
  font-weight: 700;
}

body.npf-hiw .npf-hiw-main .hiw-pricing__tagline {
  font-size: 14px;
  font-style: italic;
  color: var(--hiw-text-muted);
  margin-bottom: 44px;
}

/* ─── Cards Grid ─── */
body.npf-hiw .npf-hiw-main .hiw-pricing__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 780px;
  margin: 0 auto 36px;
  text-align: left;
}

body.npf-hiw .npf-hiw-main .hiw-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--hiw-border);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.npf-hiw .npf-hiw-main .hiw-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

/* Top colored accent line */
body.npf-hiw .npf-hiw-main .hiw-card--nonprofit::before,
body.npf-hiw .npf-hiw-main .hiw-card--buyer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--hiw-primary);
}

body.npf-hiw .npf-hiw-main .hiw-card--freelancer::before,
body.npf-hiw .npf-hiw-main .hiw-card--seller::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--hiw-primary);
}

body.npf-hiw .npf-hiw-main .hiw-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

body.npf-hiw .npf-hiw-main .hiw-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--hiw-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--hiw-primary);
}

body.npf-hiw .npf-hiw-main .hiw-card__icon svg {
  width: 22px;
  height: 22px;
}

body.npf-hiw .npf-hiw-main .hiw-card__title {
  font-family: var(--hiw-font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--hiw-text-dark);
}

/* Checklist */
body.npf-hiw .npf-hiw-main .hiw-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
  flex-grow: 1;
}

body.npf-hiw .npf-hiw-main .hiw-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #334155;
  line-height: 1.4;
}

body.npf-hiw .npf-hiw-main .hiw-card__check {
  width: 18px;
  height: 18px;
  color: var(--hiw-primary);
  flex-shrink: 0;
}

/* CTA Buttons — Following the Hero button color pattern (Screenshot 10.29.27) */
body.npf-hiw .npf-hiw-main .hiw-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  border-radius: 12px;
  font-family: var(--hiw-font-head);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, color 0.2s ease;
  border: none;
  cursor: pointer;
}

/* Primary Button: Solid Blue (matches "Find an Expert") */
body.npf-hiw .npf-hiw-main .hiw-btn--nonprofit,
body.npf-hiw .npf-hiw-main .hiw-btn--buyer {
  background: var(--hiw-primary);
  color: #ffffff !important;
}

body.npf-hiw .npf-hiw-main .hiw-btn--nonprofit:hover,
body.npf-hiw .npf-hiw-main .hiw-btn--buyer:hover {
  background: var(--hiw-primary-dark);
  box-shadow: 0 4px 14px rgba(79, 132, 195, 0.35);
  transform: translateY(-1px);
}

/* Soft Button: Light Blue with Dark Text (matches "Become an Expert") */
body.npf-hiw .npf-hiw-main .hiw-btn--freelancer,
body.npf-hiw .npf-hiw-main .hiw-btn--seller {
  background: var(--hiw-primary-soft);
  color: var(--hiw-ink) !important;
}

body.npf-hiw .npf-hiw-main .hiw-btn--freelancer:hover,
body.npf-hiw .npf-hiw-main .hiw-btn--seller:hover {
  background: var(--hiw-primary-hover-soft);
  color: var(--hiw-ink) !important;
  transform: translateY(-1px);
}

/* Pricing Footer Note */
body.npf-hiw .npf-hiw-main .hiw-pricing__footer-note {
  font-family: var(--hiw-font-body);
  font-size: 14px;
  color: var(--hiw-text-body);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* ─── Responsive ─── */
@media (max-width: 860px) {
  body.npf-hiw .npf-hiw-main .hiw-steps__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  body.npf-hiw .npf-hiw-main .hiw-steps__image-wrap {
    order: 2;
  }

  body.npf-hiw .npf-hiw-main .hiw-pricing__cards {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
}

@media (max-width: 600px) {
  body.npf-hiw .npf-hiw-main .hiw-hero {
    padding: 48px 0 30px;
  }

  body.npf-hiw .npf-hiw-main .hiw-pricing {
    padding: 48px 0 60px;
  }

  body.npf-hiw .npf-hiw-main .hiw-pricing__pill {
    padding: 10px 18px;
    font-size: 13px;
  }
}
