/* ==========================================================
   How It Works — timeline section (white background, responsive)
   ========================================================== */

:root {
  /* colors */
  --bg: #ffffff;
  --text: #0c0e19;
  --muted: #5d6373;
  --card-bg: #f7f8fb;
  --card-border: #e4e7ee;
  --line: #e1e4ec;
  --lime: #b7f56b;
  --lime-deep: #3f6212;      /* readable green for text on light backgrounds */
  --blue: #2f7df6;
  --indigo: #4f46e5;

  /* timeline sizing */
  --circle: 40px;
  --circle-offset: 6px;      /* circle sits a little below the top of its card */
  --step-gap: 16px;          /* space between cards */
  --col-gap: 16px;           /* space between circle and card */

  --radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}
/* 
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
} */

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

/* ---------- Section layout ---------- */

.how {
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 5vw, 2rem);
}

.how__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 3vw, 2rem);
  max-width: 1000px;
  margin-inline: auto;
}

/* Left column: heading on top, image pinned to the bottom */
.how__intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.how__title {
  margin: 1rem 0 0;
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* ---------- Badge ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: var(--card-bg);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

.badge__icon {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--lime);
}

.badge__icon::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--card-bg);
}

/* ---------- Media ---------- */

.how__media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 354 / 266;
  background: #0a3a86;
}

.how__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Timeline ---------- */

.stepes {
  position: relative;
  display: grid;
  gap: var(--step-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* vertical track behind all the number circles */
.stepes::before {
  content: "";
  position: absolute;
  left: calc(var(--circle) / 2 - 1px);
  top: calc(var(--circle-offset) + var(--circle) / 2);
  bottom: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: var(--circle) minmax(0, 1fr);
  column-gap: var(--col-gap);
  align-items: start;
}

.steps__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--circle);
  height: var(--circle);
  margin-top: var(--circle-offset);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  background: #eef1f6;
  color: var(--lime-deep);
  font-size: 0.9rem;
  font-weight: 700;
}

.steps__card {
  position: relative;
  padding: 1.25rem 1.75rem 1.4rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card-bg);
}

/* small lime dot on the card's left edge */
.steps__card::before {
  content: "";
  position: absolute;
  left: -5px;
  top: calc(var(--circle-offset) + var(--circle) / 2 - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(183, 245, 107, 0.35);
}

.steps__title {
  margin: 0 0 0.4rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.steps__text {
  margin: 0;
  /* max-width: 38ch; */
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.6;
}

/* active step (02): filled circle + gradient connector down to the next step */
.steps.is-active .step__num {
  border-color: var(--lime);
  background: var(--lime);
  color: #14210a;
}

.steps.is-active::after {
  content: "";
  position: absolute;
  left: calc(var(--circle) / 2 - 1.5px);
  top: calc(var(--circle-offset) + var(--circle) / 2);
  height: calc(100% + var(--step-gap));
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(135deg, #fad8bb, #c95300);
}

/* ---------- Responsive ---------- */

/* Tablets and below: stack the two columns */
@media (max-width: 900px) {
  .how__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .how__intro {
    gap: 1.75rem;
  }

  .how__media {
    max-width: 560px;
  }
}

/* Phones */
@media (max-width: 520px) {
  :root {
    --circle: 34px;
    --circle-offset: 4px;
    --col-gap: 12px;
  }

  .steps__card {
    padding: 1rem 1.1rem 1.15rem;
  }

  .steps__title {
    font-size: 1.05rem;
  }

  .steps__num {
    font-size: 0.8rem;
  }

  .how__media {
    max-width: none;
  }
}
