/* ============================================================================
   I Did The Hard Work - How It Works page
   Incremental page stylesheet for page-specific elements only (timeline,
   module grid, CTA button).
   Shared prose-page shell/panel/title/prose/closing styles come from
   static/css/public_pages.css, which must be linked before this file.
   ============================================================================ */

/* --------------------------------------------------------------------------
   Journey section (inside the shared .content-panel)
   -------------------------------------------------------------------------- */
.how-works-journey {
  margin: 28px 0 0;
}

.journey-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 16px;
}

.journey-header__line {
  width: 74px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(195, 139, 54, 0.88));
}

.journey-header__line:last-child {
  background: linear-gradient(90deg, rgba(195, 139, 54, 0.88), transparent);
}

.journey-header h2 {
  margin: 0;
  color: var(--idthw-ink);
  font-family: var(--idthw-serif);
  font-size: 31px;
  line-height: 1;
  letter-spacing: 0.055em;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.journey-intro {
  width: min(570px, 100%);
  margin: 0 auto 24px;
  text-align: center;
  color: #1d3251;
  font-size: 13px;
  line-height: 1.65;
  font-weight: 500;
}

.age-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 20px;
}

.age-rule span {
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(195, 139, 54, 0.78));
}

.age-rule span:last-child {
  background: linear-gradient(90deg, rgba(195, 139, 54, 0.78), transparent);
}

.age-rule strong {
  color: var(--idthw-gold);
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.13em;
  font-weight: 700;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */
.timeline-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin: 0;
  padding: 0 0 0 182px;
  list-style: none;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 49px;
  left: 214px;
  width: 1px;
  background: linear-gradient(180deg, rgba(195, 139, 54, 0.08), rgba(195, 139, 54, 0.74) 12%, rgba(195, 139, 54, 0.74) 88%, rgba(195, 139, 54, 0.08));
}

.timeline-item {
  position: relative;
  min-height: 72px;
}

.phase-label {
  position: absolute;
  top: 31px;
  left: -135px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 104px;
  color: var(--idthw-gold);
  font-family: var(--idthw-sans);
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.035em;
  font-weight: 700;
  text-transform: uppercase;
}

.phase-label::after {
  content: "";
  width: 30px;
  height: 1px;
  margin-left: 12px;
  background: rgba(195, 139, 54, 0.70);
}

.phase-label--final {
  left: -157px;
  width: 126px;
}

.timeline-node {
  position: absolute;
  top: 0;
  left: -2px;
  z-index: 2;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  color: var(--idthw-gold);
  border-radius: 999px;
  box-shadow: 0 8px 21px rgba(7, 31, 64, 0.12);
  transform: translateX(-50%);
}

.timeline-item--navy .timeline-node {
  background: #062246;
  border: 2px solid rgba(195, 139, 54, 0.72);
}

.timeline-item--gold .timeline-node {
  color: #fff8ec;
  background: linear-gradient(180deg, #c99a4d 0%, #b57725 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.timeline-node svg {
  width: 36px;
  height: 36px;
}

.timeline-copy {
  padding: 6px 0 0 52px;
}

.timeline-copy h3 {
  margin: 0 0 5px;
  color: var(--idthw-ink);
  font-family: var(--idthw-serif);
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: 0.035em;
  font-weight: 700;
  text-transform: none;
}

.timeline-copy p {
  margin: 0;
  max-width: 520px;
  color: #1f3350;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: 0.005em;
}

.timeline-copy strong {
  color: var(--idthw-gold);
  font-weight: 700;
}

.timeline-item--final .timeline-copy h3 {
  color: var(--idthw-gold);
}

/* --------------------------------------------------------------------------
   Module grid (inside Phase 2 timeline-copy)
   -------------------------------------------------------------------------- */
.module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  gap: 0;
  max-width: 455px;
  margin: 18px 0 14px;
}

.module-card {
  min-height: 102px;
  padding: 0 12px;
  text-align: center;
  border-right: 1px solid rgba(195, 139, 54, 0.42);
}

.module-card:last-child {
  border-right: 0;
}

.module-icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  margin: 0 auto 7px;
  color: #8b6f52;
  border: 1px solid rgba(139, 111, 82, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.module-icon svg {
  width: 29px;
  height: 29px;
}

.module-card strong {
  display: block;
  color: #0c2446;
  font-family: var(--idthw-sans);
  font-size: 10px;
  line-height: 1.15;
  letter-spacing: 0.065em;
  font-weight: 700;
  text-transform: uppercase;
}

.module-card small {
  display: block;
  margin-top: 5px;
  color: var(--idthw-gold);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.05em;
  font-weight: 700;
  text-transform: uppercase;
}

.book-note {
  color: #1f3350;
}

.book-note em {
  color: var(--idthw-gold);
  font-style: italic;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   CTA (inside shared .prose-closing)
   -------------------------------------------------------------------------- */
.cta-star-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  gap: 12px;
}

.cta-star-rule span {
  width: 75px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(195, 139, 54, 0.70));
}

.cta-star-rule span:last-child {
  background: linear-gradient(90deg, rgba(195, 139, 54, 0.70), transparent);
}

.cta-star-rule strong {
  color: var(--idthw-gold);
  font-size: 17px;
  line-height: 1;
}

.how-it-works-page .prose-closing p {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.35;
}

.token-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: min(470px, 100%);
  min-height: 52px;
  padding: 14px 30px;
  color: var(--idthw-gold);
  background: linear-gradient(180deg, #07264b 0%, #041a35 100%);
  border: 1px solid rgba(195, 139, 54, 0.78);
  border-radius: 5px;
  box-shadow: 0 12px 26px rgba(7, 31, 64, 0.18);
  font-family: var(--idthw-sans);
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.14em;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.token-button:hover,
.token-button:focus-visible {
  color: #e6bd78;
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(7, 31, 64, 0.23);
}

/* --------------------------------------------------------------------------
   Responsive behavior
   -------------------------------------------------------------------------- */
@media (max-width: 680px) {
  .timeline-list {
    padding-left: 70px;
  }

  .timeline-list::before {
    left: 102px;
  }

  .phase-label {
    left: -60px;
    width: 50px;
    font-size: 11px;
  }

  .phase-label::after {
    width: 16px;
    margin-left: 6px;
  }

  .phase-label--final {
    left: -82px;
    width: 72px;
  }

  .timeline-node {
    width: 50px;
    height: 50px;
  }

  .timeline-node svg {
    width: 27px;
    height: 27px;
  }

  .timeline-copy {
    padding-left: 38px;
  }

  .timeline-copy h3 {
    font-size: 20px;
  }

  .journey-header h2 {
    font-size: 24px;
    white-space: normal;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .module-card,
  .module-card:nth-child(2) {
    border-right: 0;
  }
}
