/* ==========================================================================
   FixDebtUSA — How It Works Page
   Loaded only by how-it-works.html, on top of theme.css + style.css +
   home.css. Reuses every hp-* class (header, footer, buttons, section
   rhythm, hp-head) verbatim; sections unique to this page — the stat-card
   hero, the alternating step timeline, the trust cards, the static FAQ list
   and the CTA panel — get their own hiw-* classes here.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero — dark gradient band, three glass stat cards, wave foot
   -------------------------------------------------------------------------- */

.hiw-hero {
  position: relative;
  padding-block: 3.5rem 6rem;
  background: linear-gradient(135deg, hsl(var(--hp-green-deep)), hsl(142 55% 34%));
  text-align: center;
  overflow: hidden;
}

.hiw-hero__inner {
  position: relative;
  z-index: 1;
}

/* `.home h1` (theme.css) sets a dark ink color at higher specificity than a
   single class, so this needs the `.home` prefix to actually win the white. */
.home .hiw-hero__title {
  color: #fff;
  font-size: clamp(1.875rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.hiw-hero__title .hp-accent { color: hsl(150 60% 78%); }

.hiw-hero__lede {
  max-width: 38rem;
  margin: 0 auto 2.25rem;
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  line-height: 1.6;
  color: hsl(0 0% 100% / .82);
}

.hiw-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  max-width: 40rem;
  margin-inline: auto;
}

.hiw-hero__stat {
  padding: 1.1rem 0.75rem;
  border-radius: 1rem;
  background-color: hsl(0 0% 100% / .1);
  border: 1px solid hsl(0 0% 100% / .18);
  backdrop-filter: blur(6px);
}

.hiw-hero__stat-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 auto 0.6rem;
  border-radius: 50%;
  background-color: hsl(0 0% 100% / .16);
  color: #fff;
  font-size: 0.9375rem;
}

.hiw-hero__stat-value {
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.hiw-hero__stat-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(0 0% 100% / .7);
}

.hiw-hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 5rem;
  z-index: 0;
}

@media (min-width: 768px) {
  .hiw-hero { padding-block: 4.5rem 7.5rem; }
  .hiw-hero__wave { height: 7rem; }
  .hiw-hero__stat { padding: 1.35rem 1rem; }
  .hiw-hero__stat-value { font-size: 1.375rem; }
}

/* --------------------------------------------------------------------------
   2. Step timeline
   -------------------------------------------------------------------------- */

.hiw-timeline {
  position: relative;
  max-width: 46rem;
  margin-inline: auto;
}

/* Connecting line down the left edge on mobile, recentred at desktop width */
.hiw-timeline::before {
  content: "";
  position: absolute;
  top: 1.75rem;
  bottom: 1.75rem;
  left: 1.75rem;
  width: 2px;
  background: linear-gradient(hsl(var(--hp-green) / .05), hsl(var(--hp-green) / .35) 15%, hsl(var(--hp-green) / .35) 85%, hsl(var(--hp-green) / .05));
}

.hiw-step {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.25rem;
  align-items: start;
}

.hiw-step + .hiw-step { margin-top: 2rem; }

/* Only meaningful for the desktop 3-column alternating layout below — as a
   grid item it would otherwise still claim a cell on the mobile 2-column
   grid and push the card into the narrow dot column. */
.hiw-step__spacer { display: none; }

.hiw-step__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  border-radius: 1.1rem;
  background: linear-gradient(140deg, hsl(var(--hp-green)), hsl(var(--hp-green-dark)));
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 10px 24px -10px hsl(var(--hp-green) / .55);
}

.hiw-step__card {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 1.35rem;
  border: 1px solid hsl(var(--hp-line));
  border-radius: 1.25rem;
  background-color: #fff;
  box-shadow: var(--hp-shadow-card);
  overflow: hidden;
}

.hiw-step__watermark {
  position: absolute;
  top: -0.5rem;
  right: 0.75rem;
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  color: hsl(var(--hp-green) / .08);
  pointer-events: none;
}

.hiw-step__tag {
  display: block;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--hp-green));
  margin-bottom: 0.4rem;
}

.hiw-step__card h3 {
  position: relative;
  font-size: 1.1875rem;
  margin-bottom: 0.6rem;
}

.hiw-step__card > p {
  position: relative;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.1rem;
}

.hiw-step__ticks {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hiw-step__ticks li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--hp-ink));
}

.hiw-step__ticks li + li { margin-top: 0.5rem; }
.hiw-step__ticks i { color: hsl(var(--hp-green)); flex-shrink: 0; }

/* --------------------------------------------------------------------------
   3. Trust cards
   -------------------------------------------------------------------------- */

.hiw-trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.hiw-trust-card {
  position: relative;
  padding: 1.5rem;
  border: 1px solid hsl(var(--hp-line));
  border-radius: 1.25rem;
  background-color: #fff;
  box-shadow: var(--hp-shadow-card);
}

.hiw-trust-card__num {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  color: hsl(var(--hp-green) / .1);
}

.hiw-trust-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  background-color: hsl(var(--hp-mint));
  color: hsl(var(--hp-green-dark));
  font-size: 1.1rem;
}

.hiw-trust-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.hiw-trust-card p {
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.hiw-trust-card__caption {
  display: block;
  padding-top: 0.85rem;
  border-top: 1px solid hsl(var(--hp-line));
  font-size: 0.8125rem;
  font-weight: 800;
  color: hsl(var(--hp-green-dark));
}

/* --------------------------------------------------------------------------
   4. Got questions — static two-column FAQ
   -------------------------------------------------------------------------- */

.hiw-faq {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: start;
}

.hiw-faq__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.85rem;
}

.hiw-faq__sub {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 26rem;
}

.hiw-faq__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: hsl(var(--hp-green));
}

.hiw-faq__link:hover { color: hsl(var(--hp-green-dark)); }

.hiw-faq__list {
  display: grid;
  gap: 1rem;
}

.hiw-faq__item {
  display: flex;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid hsl(var(--hp-line));
  border-radius: 1rem;
  background-color: #fff;
  box-shadow: var(--hp-shadow-card);
}

.hiw-faq__item-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: hsl(var(--hp-mint));
  color: hsl(var(--hp-green-dark));
  font-size: 0.75rem;
  font-weight: 800;
}

.hiw-faq__item h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.hiw-faq__item p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: hsl(var(--hp-body));
}

/* --------------------------------------------------------------------------
   5. CTA panel — dark gradient card with a compact stat sidebar
   -------------------------------------------------------------------------- */

.hiw-cta-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: clamp(1.75rem, 3.5vw, 3rem);
  width: 100%;
  box-sizing: border-box;
  border-radius: 1.75rem;
  background: linear-gradient(135deg, hsl(var(--hp-green-deep)), hsl(142 55% 28%));
  box-shadow: 0 20px 45px -10px rgba(12, 74, 44, 0.35);
  color: hsl(0 0% 100% / .85);
}

.hiw-cta-card__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  background-color: hsl(0 0% 100% / .14);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.home .hiw-cta-card__title {
  color: #fff;
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  margin-bottom: 0.85rem;
}

.hiw-cta-card__lede {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 28rem;
}

.hiw-cta-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hiw-cta-card__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hiw-cta-card__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
}

.hiw-cta-card__trust i { color: hsl(150 55% 65%); }

.hiw-cta-card__panel {
  padding: 1.75rem 1.85rem;
  border-radius: 1.25rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  width: 100%;
  max-width: 360px;
  box-sizing: border-box;
  justify-self: center;
}

.hiw-cta-card__panel-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(150 65% 75%);
  margin-bottom: 0.65rem;
  line-height: 1;
}

.hiw-cta-card__panel-value {
  font-size: 2.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.hiw-cta-card__panel-sub {
  font-size: 0.8125rem;
  color: hsl(0 0% 100% / .75);
  margin-bottom: 1.25rem;
}

.hiw-cta-card__panel-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  list-style: none;
}

.hiw-cta-card__panel-mini li {
  background-color: hsl(0 0% 100% / .06);
  padding: 0.6rem 0.5rem;
  border-radius: 0.65rem;
}

.hiw-cta-card__panel-mini strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.hiw-cta-card__panel-mini span {
  font-size: 0.6875rem;
  color: hsl(0 0% 100% / .65);
}

/* --------------------------------------------------------------------------
   6. Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 640px) {
  .hiw-trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .hiw-trust-grid { grid-template-columns: repeat(4, 1fr); }
  .hiw-faq        { grid-template-columns: 0.85fr 1.15fr; gap: 4rem; }
  .hiw-cta-card   { grid-template-columns: 1fr auto; padding: 3.25rem 3.5rem; gap: 3rem; align-items: center; }
  .hiw-cta-card__panel { justify-self: end; width: 340px; }

  /* Timeline switches to a centred line with cards alternating left/right */
  .hiw-timeline::before { left: 50%; margin-left: -1px; }

  .hiw-step {
    grid-template-columns: 1fr 4.5rem 1fr;
    gap: 2rem;
  }

  .hiw-step__dot { grid-column: 2; justify-self: center; }

  .hiw-step__card { grid-column: 1; grid-row: 1; }

  .hiw-step--reverse .hiw-step__card {
    grid-column: 3;
    text-align: left;
  }

  .hiw-step__spacer { display: block; grid-column: 3; }
  .hiw-step--reverse .hiw-step__spacer { grid-column: 1; }

  .hiw-step__watermark { right: auto; left: 0.75rem; }
  .hiw-step--reverse .hiw-step__watermark { left: auto; right: 0.75rem; }
}
