/* =====================================================================
   qbwfileunlock.com - "How it works" 3-step workflow component
   Scope: .wf3  (every class namespaced "wf3", every custom property
          namespaced "--wf3-" so this file can be dropped into the
          landing page without touching .pricing-grid, .price-card,
          .trust, .step-icon, .num or any other existing rule)
   No JavaScript, no external fonts, no images, no emoji.
   ===================================================================== */

/* ---------- design tokens (scoped to the component) ---------- */
.wf3 {
  --wf3-blue: #a32020;
  --wf3-blue-tint: rgba(163, 32, 32, 0.08);
  --wf3-blue-ink: #a32020;
  --wf3-surface: #ffffff;
  --wf3-ink: #16110d;
  --wf3-muted: #5d544c;
  --wf3-card-bg: #ffffff;
  --wf3-card-border: #e2bdb7;
  --wf3-arrow: rgba(93, 20, 20, 0.35);

  --wf3-num-size: 42px;   /* the step circle - fixed, never squashed */
  --wf3-pad: 1.15rem;     /* card padding left/right/bottom */
  --wf3-pad-top: 1.1rem;  /* card padding top (positions the circle) */
  --wf3-gap: clamp(1.5rem, 3.2vw, 3rem); /* desktop column gap */
  --wf3-vgap: 2.25rem;    /* mobile row gap */
}

/* ---------- component shell ---------- */
.wf3,
.wf3 *,
.wf3 *::before,
.wf3 *::after {
  box-sizing: border-box;
}

.wf3 {
  margin: 0 0 1.5rem;
  color: var(--wf3-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

.wf3-title {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.25;
  color: var(--wf3-ink);
  margin: 2rem 0 1rem;
}

/* ---------- track ---------- */
.wf3-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;      /* mobile: stacked */
  gap: var(--wf3-vgap);
}

/* ---------- step card ---------- */
.wf3-step {
  position: relative;              /* anchor for the connector chevron */
  display: flex;
  flex-direction: column;
  background: var(--wf3-card-bg);
  border: 1px solid var(--wf3-card-border);
  border-radius: 0.75rem;
  padding: var(--wf3-pad-top) var(--wf3-pad) var(--wf3-pad);
  margin: 0;
}

/* ---------- step number circle ----------
   PERFECT CIRCLE at every viewport width.
   The width/height/min-width/min-height are all explicit and
   flex-basis is NOT used (flex-basis collapses the cross-axis size on
   phones and squashed the circle into an oval). align-self:flex-start
   stops the flex column from stretching the circle across the card. */
.wf3-num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  align-self: flex-start;
  width: 42px;
  min-width: 42px;
  max-width: 42px;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  border-radius: 50%;
  background: var(--wf3-blue);
  color: var(--wf3-surface);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 0.7rem;
}

/* ---------- step text ---------- */
.wf3-h {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--wf3-ink);
  margin: 0 0 0.4rem;
}

.wf3-p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--wf3-muted);
  margin: 0 0 0.85rem;
}

/* ---------- badge ---------- */
.wf3-badge {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;                /* sits at the bottom of the card */
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.5;
}

.wf3-badge--blue  { background: rgba(163, 32, 32, 0.08); color: var(--wf3-blue-ink); }
.wf3-badge--amber { background: rgba(245, 158, 11, 0.14); color: #8a5a00; }
.wf3-badge--green { background: rgba(34, 197, 94, 0.14); color: #166534; }

/* ---------- connector chevron ----------
   Drawn with two borders on a 10x10 box and rotated, so it needs no
   image, font or SVG. Default (mobile) it sits under the card and
   points DOWN. */
.wf3-step:not(:last-child)::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--wf3-arrow);
  border-bottom: 2px solid var(--wf3-arrow);
  top: 100%;
  left: 50%;
  margin-left: -5px;
  margin-top: calc((var(--wf3-vgap) / 2) - 4px);
  transform: rotate(45deg);         /* point down */
}

/* ---------- desktop / tablet: one horizontal row ---------- */
@media (min-width: 760px) {
  .wf3-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--wf3-gap);
  }

  .wf3-step:not(:last-child)::after {
    /* move the chevron into the gap between cards and point it RIGHT */
    top: calc(var(--wf3-pad-top) + 16px);   /* centre of the 42px circle */
    left: auto;
    right: calc((var(--wf3-gap) / -2) - 6px);
    margin-left: 0;
    margin-top: 0;
    transform: rotate(-45deg);
  }
}

/* ---------- narrow desktop: reclaim card padding and gap ---------- */
@media (min-width: 760px) and (max-width: 899px) {
  .wf3 {
    --wf3-pad: 0.9rem;
    --wf3-gap: 1.5rem;
  }
}

/* ---------- very small phones ---------- */
@media (max-width: 359px) {
  .wf3 {
    --wf3-pad: 0.9rem;
    --wf3-vgap: 1.9rem;
  }
  .wf3-p { font-size: 0.9rem; }
  .wf3-badge { font-size: 0.82rem; }
}

/* ---------- theme: the card surface ----------
   The landing page is the offer page's light system: white cards on the
   FBECEB-family canvas, with a visible warm border. */

/* ---------- light theme: the card surface ---------- */
.wf3-card,
.wf3-step {
  background: #ffffff;
  border: 1px solid #e2bdb7;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
