/* ============================================================
   HOW RESERVING WORKS - Subscriptions page
   All rules scoped to .sub-howres to avoid conflicts.
   ============================================================ */

/* ------------------------------------------------------------
   Section wrapper
   ------------------------------------------------------------ */
.sub-howres {
  background: var(--white);
  padding-block: 72px;
}

/* ------------------------------------------------------------
   Centered header
   ------------------------------------------------------------ */
.sub-howres__header {
  text-align: center;
  margin-bottom: 48px;
}

.sub-howres__eyebrow {
  display: block;
  font-family: Inter, -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 18px;
  -webkit-font-smoothing: antialiased;
}

.sub-howres__headline {
  font-family: 'Inter Display', Inter, -apple-system, sans-serif;
  font-size: var(--fs-h2);
  font-weight: var(--fw-heading);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--blue);
  max-width: 22ch;
  margin: 0 auto;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------
   Steps row
   <ol> with position: relative so ::before connector anchors to it
   ------------------------------------------------------------ */
.sub-howres__steps {
  display: flex;
  align-items: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

/* Horizontal connector line — decorative, sits behind markers.
   Spans from center of col 1 to center of col 3 (1/6 → 5/6).
   top: 14px = half of 28px marker height = vertical midpoint.    */
.sub-howres__steps::before {
  content: '';
  position: absolute;
  top: 14px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 1px;
  background: var(--border);
  z-index: 0;
  pointer-events: none;
}

/* ------------------------------------------------------------
   Individual step
   ------------------------------------------------------------ */
.sub-howres__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-inline: 24px;
}

/* Numbered marker — sits above the connector line (z-index: 1) */
.sub-howres__marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--purple);
  color: #ffffff;
  font-family: Inter, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Step title */
.sub-howres__step-title {
  font-family: Inter, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 6px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}

/* Step description */
.sub-howres__step-desc {
  font-family: Inter, -apple-system, sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .sub-howres {
    padding-block: 56px;
  }

  .sub-howres__header {
    margin-bottom: 36px;
  }

  /* Stack vertically, centered — matches existing .steps-row mobile pattern */
  .sub-howres__steps {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  /* Hide horizontal connector on mobile — no clean equivalent when stacked */
  .sub-howres__steps::before {
    display: none;
  }

  .sub-howres__step {
    padding-inline: 0;
    width: 100%;
    max-width: 280px;
  }

  .sub-howres__headline {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .sub-howres {
    padding-block: 48px;
  }
}
